package sdfi.lee.Entity.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the rollnotice table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="rollnotice"
 */

public abstract class BaseRollnotice  implements Serializable {

	public static String REF = "Rollnotice";
	public static String PROP_ROLLTYPE = "rolltype";
	public static String PROP_ROLLDATE = "rolldate";
	public static String PROP_ID = "id";
	public static String PROP_ROLLPATH = "rollpath";


	// constructors
	public BaseRollnotice () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseRollnotice (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseRollnotice (
		java.lang.Integer id,
		java.lang.String rollpath) {

		this.setId(id);
		this.setRollpath(rollpath);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private sdfi.lee.Entity.Rolltype rolltype;
	private java.util.Date rolldate;
	private java.lang.String rollpath;

	private java.lang.String rolltitle;

	public java.lang.String getRolltitle() {
		return rolltitle;
	}

	public void setRolltitle(java.lang.String rolltitle) {
		this.rolltitle = rolltitle;
	}

	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="identity"
     *  column="Id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: rolltype
	 */
	public sdfi.lee.Entity.Rolltype getRolltype() {
		return rolltype;
	}

	/**
	 * Set the value related to the column: rolltype
	 * @param rolltype the rolltype value
	 */
	
	public void setRolltype(sdfi.lee.Entity.Rolltype rolltype) {
		this.rolltype = rolltype;
	}


	/**
	 * Return the value associated with the column: rolldate
	 */
	public java.util.Date getRolldate () {
		return rolldate;
	}

	

	

	/**
	 * Set the value related to the column: rolldate
	 * @param rolldate the rolldate value
	 */
	public void setRolldate (java.util.Date rolldate) {
		this.rolldate = rolldate;
	}



	/**
	 * Return the value associated with the column: rollpath
	 */
	public java.lang.String getRollpath () {
		return rollpath;
	}

	/**
	 * Set the value related to the column: rollpath
	 * @param rollpath the rollpath value
	 */
	public void setRollpath (java.lang.String rollpath) {
		this.rollpath = rollpath;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof sdfi.lee.Entity.Rollnotice)) return false;
		else {
			sdfi.lee.Entity.Rollnotice rollnotice = (sdfi.lee.Entity.Rollnotice) obj;
			if (null == this.getId() || null == rollnotice.getId()) return false;
			else return (this.getId().equals(rollnotice.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}